USE [BillManage]
GO

SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO

SET ANSI_PADDING ON
GO

CREATE TABLE [dbo].[t_Logs](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[FGroup] [varchar](50) NOT NULL,
	[FUid] [int] NULL,
	[FSubject] [varchar](50) NOT NULL,
	[FContent] [varchar](300) NOT NULL,
	[FDate] [datetime] NOT NULL,
	[FNIP] [varchar](50) NULL,
	[FWIP] [varchar](50) NULL,
	[FUName] [varchar](50) NULL,
	[FSeverity] [int] NOT NULL,
 CONSTRAINT [PK_t_Logs] PRIMARY KEY CLUSTERED 
(
	[id] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]

GO

SET ANSI_PADDING OFF
GO

ALTER TABLE [dbo].[t_Logs] ADD  CONSTRAINT [DF_t_Logs_FDate]  DEFAULT (getdate()) FOR [FDate]
GO

ALTER TABLE [dbo].[t_Logs] ADD  CONSTRAINT [DF_t_Logs_FSeverity]  DEFAULT ((0)) FOR [FSeverity]
GO

